package cn.tedu.vue_master.service.impl;

import cn.tedu.vue_master.mapper.SpuMapper;
import cn.tedu.vue_master.pojo.spu.vo.SpuListItemVO;
import cn.tedu.vue_master.service.ISpuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class SpuServiceImpl implements ISpuService {

    @Autowired
    private SpuMapper spuMapper;

    @Override
    public List<SpuListItemVO> listByBrandId(Long brandId) {
        log.debug("正在处理根据品牌id获取spu列表的业务...");
        return spuMapper.listByBrandId(brandId);
    }
}
